package com.haisen.service;

import com.dingtalk.api.response.OapiDepartmentGetResponse;
import com.dingtalk.api.response.OapiDepartmentListResponse;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface DingDepartmentService {

    /**
     *根据id查所属子部门ids,isv也可以查，意义好像不大
     * @param pid
     * @return
     */
    List<Long> getSubDepartIds(String pid);

    List<OapiDepartmentListResponse.Department> getDepartments(String pid);

    OapiDepartmentGetResponse  departmentGetResponse(String id);


}